package ${projectDefinitionDO.serverProjectDefinitionDO.serverProjectStartClassPackagePathName}.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.validation.annotation.Validated;
<#if projectDefinitionDO.parentProjectDefinitionDO.javaVersion != '1.8' && projectDefinitionDO.parentProjectDefinitionDO.javaVersion != '8'>
import jakarta.validation.constraints.*;
<#else>
import javax.validation.constraints.*;
</#if>

@Setter
@Getter
@Configuration
@Validated
@PropertySource(
    value = {"classpath:application.yml"},
    name = "ss",
    encoding = "utf-8",
    ignoreResourceNotFound = true)
@ConfigurationProperties(
//prefix = "${projectDefinitionDO.serverProjectDefinitionDO.parentAndArtifactId}",
ignoreInvalidFields = true)
public class ${projectDefinitionDO.serverProjectDefinitionDO.serverProjectClassName}Config {

    @NotBlank()
    @Value(value = "${r'${'}${projectDefinitionDO.serverProjectDefinitionDO.parentAndArtifactId}${r'.strValue:str}'}")
    private String strValue;


    @Min(value = 10)
    @Value(value = "${r'${'}${projectDefinitionDO.serverProjectDefinitionDO.parentAndArtifactId}${r'.intValue:11}'}")
    private int integerValue;

}
